/*
*XMLParser.fx
*
*Created on Mar 27, 2011, 04:31:12 AM
*/

package mythesis.test;
import javafx.data.xml.*;
import java.io.*;
import java.util.*;
import javafx.stage.*;
import javafx.scene.*;
import javafx.scene.text.*;

var props:Properties = new Properties();
var dir = "{__DIR__}";
dir = dir.substring(6, dir.length());
var is:InputStream = new FileInputStream("{dir}sample.xml");
props.loadFromXML(is);

var stuff = props.getProperty("email.support");

Stage
{
    width  : 300
    height : 300
    scene: Scene
    {
        content:
        [
        	Text
        	{
        	    x: 100
        	    y: 100
        	    //content: "{__DIR__}sample2.xml"
        	}
        ]
    }
}








/*
var builder = DocumentBuilder
{
    namespaceAware   : true
    validating       : true
    ignoringComments : false
};

var document = builder.parseURI("{__DIR__}sample.xml");
println(document);
*/